package model

import (
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ MallDemoModel = (*customMallDemoModel)(nil)

type (
	// MallDemoModel is an interface to be customized, add more methods here,
	// and implement the added methods in customMallDemoModel.
	MallDemoModel interface {
		mallDemoModel
	}

	customMallDemoModel struct {
		*defaultMallDemoModel
	}
)

// NewMallDemoModel returns a model for the database table.
func NewMallDemoModel(conn sqlx.SqlConn) MallDemoModel {
	return &customMallDemoModel{
		defaultMallDemoModel: newMallDemoModel(conn),
	}
}
